package org.example.weather.bigscreen.core.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.weather.bigscreen.core.api.WeatherApi;
import org.example.weather.bigscreen.core.api.dto.BaiduWeatherDTO;
import org.example.weather.bigscreen.core.api.dto.WeatherInfoDTO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

/**
 * Created on 2022-07-22.
 *
 * @author chenyu
 */
@RestController
@Slf4j
@RequestMapping("weather")
public class WeatherController implements WeatherApi {
    @Override
    public int upload(Date uploadTime, List<BaiduWeatherDTO> weathers) {
        return 0;
    }

    @Override
    public WeatherInfoDTO select(Date uploadTime, String areaId) {
        return null;
    }

    @Override
    public List<WeatherInfoDTO> selectTop(Date uploadTime, Integer label, Integer sortRule) {
        return null;
    }

    @Override
    public List<WeatherInfoDTO> selectDaily(Date uploadDate, String areaId) {
        return null;
    }

    @Override
    public List<WeatherInfoDTO> selectHistory(String areaId) {
        return null;
    }

    @Override
    public List<WeatherInfoDTO> selectMulti(Date uploadTime, List<String> areaIds) {
        return null;
    }
}
